package com.xiaobawang.xjsyy_idea_plugin.forest;

import lombok.Data;

import java.util.List;

/**
 * @description 云效获取流水线x详情响应结构
 * @author 18101119
 * @date 2024/5/24 17:20
 * @email songxinhang2023@e-chinalife.com
 * @id 18101119
 * @phone 13001321080
 */
@Data
public class PipelineDetail {
    private String name;
    private PipelineConfig pipelineConfig;
    private int id;

    @Data
    public static class CodeRepo {
        private String branch;
        private String repo;
    }

    @Data
    public static class PipelineDetailCodeSource {
        private String type;
        private String sign;
        private String name;
        private String label;
        private CodeRepo data;
    }

    @Data
    public static class PipelineConfig {
        private List<PipelineDetailCodeSource> sources;
        private int pipelineConfigId;
    }
}